//
//  NewDetailsModel.m
//  项目A --半糖
//
//  Created by romana on 16/5/24.
//  Copyright © 2016年 romana. All rights reserved.
//

#import "NewDetailsModel.h"
#import "NewDetailsSecondModel.h"

@implementation NewDetailsModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{

}

-(void)setProduct:(NSMutableArray *)product{

    _product = product;
    NSMutableArray *array = [NSMutableArray array];
//    NSLog(@"_product===%@",_product);
    for (NSDictionary *dic in _product) {
        NewDetailsSecondModel *model = [[NewDetailsSecondModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
        NSLog(@"model===%@",model.PicArray);

    }

    _product = [NSMutableArray arrayWithArray:array];


}

@end
